﻿<%@ WebHandler Language="C#" Class="ValidateFrameNO" %>

using System;
using System.Web;
using System.Web.SessionState;

public class ValidateFrameNO : IHttpHandler,IRequiresSessionState{
    
    public void ProcessRequest (HttpContext context) {
        //context.Response.ContentType = "text/plain";
        //context.Response.Write("Hello World");
        string id = context.Request.QueryString["ID"].ToString();
        bool re = new BLL.VehicleBLL().Exists(id);

        string result = "N";
        if (re)
        {
            result = "Y";
            HttpContext.Current.Session["FilterFrameNO"] = id;
        }
        context.Response.ContentType = "text/plain";
        context.Response.Write(result);
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}